package cn.zlz.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;


@FeignClient(name = "CodeApplicaion")
public interface CodeFeignClient {

    @RequestMapping(value = "/api/code/validate",method = RequestMethod.POST)
    int validateCode(@RequestParam(value = "email") String email, @RequestParam(value = "code") String code);

    @RequestMapping(value = "/api/code/create",method = RequestMethod.GET)
    String createCode(@RequestParam(value = "email") String email);
}
